import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const routes = [
    {
        path: '/',
        redirect: '/home',
    },
    {
        path: '/home',
        name: 'Home',
        component: () => import(/* webpackChunkName: "index" */ '../components/Home.vue'),
        children: [
            {
                path: '/carBrand',
                name: 'CarBrand',
                component: () => import(/* webpackChunkName: "car" */ '../components/entry/CarBrand.vue'),
            }
        ]
    }
];

const router = new VueRouter({
    mode: 'history',
    routes
});

export default router
